Skip to content

feat!(W-23688009): enforce password length and complexity minimums - #1490

Merged
soridalac merged 7 commits into
mainfrom
k80/pw-length-complexity
Aug 10, 2026
Merged

feat!(W-23688009): enforce password length and complexity minimums#1490
soridalac merged 7 commits into
mainfrom
k80/pw-length-complexity

Conversation

@k80bowman

@k80bowman k80bowman commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Enforces the previously-warned minimums on org generate password (and the legacy force:user:password:generate) as hard flag-validation errors:

  1. --length values below 20 now fail validation instead of being silently raised to 20.
  2. --complexity values below 3 now fail validation instead of being silently raised to 3.

The Summer '26 deprecation warnings (defaultingToLength20Password, defaultingToComplexity3Password) and their runtime clamping logic have been removed. Flag min values, help text, and tests were updated to match.

BREAKING CHANGE: --length below 20 and --complexity below 3 now error instead of being silently corrected.

What issues does this PR fix or reference?

@W-23688009@

Previously values below 20 were clamped to 20 with a warning.
Now they fail flag validation.

BREAKING CHANGE: `--length` values below 20 now error instead
of being silently raised to 20.
Previously values below 3 were clamped to 3 with a warning.
Now they fail flag validation.

BREAKING CHANGE: `--complexity` values below 3 now error instead
of being silently raised to 3.
@k80bowman k80bowman changed the title K80/pw length complexity feat!(W-23688009): enforce password length and complexity minimums Aug 7, 2026
@k80bowman
k80bowman marked this pull request as ready for review August 7, 2026 13:19
@k80bowman
k80bowman requested a review from a team as a code owner August 7, 2026 13:19
@soridalac

Copy link
Copy Markdown
Contributor

QA notes:

--length : < 20 and > 1000 throw validation errors
--complexity : < 3 and > 5 throw validation errors
✅ Valid ranges accepted (length 20–1000, complexity 3–5)
✅ Defaults work (length 20, complexity 5)
✅ Deprecation warnings removed
✅ Legacy command enforces same minimums

@soridalac
soridalac merged commit e23e838 into main Aug 10, 2026
12 checks passed
@soridalac
soridalac deleted the k80/pw-length-complexity branch August 10, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants